using PCC.App;

namespace PCC.Receiver.Database
{
    public class ApproveUser : AbstractDatabaseReceiver
    {
        private readonly string _userId;

        public ApproveUser(DataManager dataManager, string userId)
            : base(dataManager)
        {
            _userId = userId;
        }

        public override void Action()
        {
            _dataManager.ApproveUser(_userId);
        }
    }
}